INCLUDE_DIRECTORIES(
  ${OGDFInclude}
  ${TulipCoreInclude}
  ${TulipOGDFInclude}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
)
LINK_DIRECTORIES(
    ${CMAKE_BINARY_DIR}/bin
)

SET(TulipToOGDF_SRCS
  TulipToOGDF.cpp
  OGDFLayoutPluginBase.cpp)

IF(BUILD_TULIP_SHARED)
    SET(TULIP_LIB_TYPE SHARED)
    SET(TULIP_LIB_DEFINITIONS "-DTULIP_DLL -DTULIP_OGDF_DLL -DOGDF_DLL -DTULIP_OGDF_EXPORT")
ELSE()
    SET(TULIP_LIB_TYPE STATIC)
ENDIF()

IF(MSVC)
    ADD_DEFINITIONS(${TULIP_LIB_DEFINITIONS})
ENDIF()

ADD_LIBRARY(${LibTulipOGDFName} ${TULIP_LIB_TYPE} ${TulipToOGDF_SRCS})

TARGET_LINK_LIBRARIES(${LibTulipOGDFName} ${LibTulipCoreName} ${OGDFLibrary})

SET(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")